package com.real8.plusplayground.client.person;

import com.google.api.gwt.services.plus.shared.model.PersonUrls;
import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.SimpleBeanEditorDriver;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class PersonUrlViewer extends Composite implements PersonUrlView {
	interface Driver extends
			SimpleBeanEditorDriver<PersonUrls, PersonUrlViewer> {
	}

	private static PersonUrlViewerUiBinder uiBinder = GWT
			.create(PersonUrlViewerUiBinder.class);

	interface PersonUrlViewerUiBinder extends UiBinder<Widget, PersonUrlViewer> {
	}

	private final Driver driver = GWT.create(Driver.class);

	@UiField
	Label valueEditor;

	@UiField
	Label typeEditor;

	public PersonUrlViewer() {
		initWidget(uiBinder.createAndBindUi(this));
		driver.initialize(this);
	}

	@Override
	public SimpleBeanEditorDriver<PersonUrls, ?> getEditorDriver() {
		return driver;
	}
}
